#define _CRT_SECURE_NO_WARNINGS 1

/*
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>

void show_arr(const double ar[], int n);
double* new_d_arr(int n, ...);

int main()
{
	double* p1 = NULL;
	double* p2 = NULL;
	p1 = new_d_arr(5, 1.2, 2.3, 3.4, 4.5, 5.6);
	p2 = new_d_arr(4, 100.2, 20.3, 34.4, 42.5);
	show_arr(p1, 5);
	show_arr(p2, 4);
	free(p1);
	free(p2);
	return 0;
}

void show_arr(const double arr[], int n)
{
	for (int i = 0; i < n; i++)
	{
		printf("%.2f\n", arr[i]);
	}
	printf("\n\n");
}

double* new_d_arr(int n, ...)
{
	double* pd = (double*)malloc(n * sizeof(double));
	va_list ap;
	va_start(ap, n);
	for (int i = 0; i < n; i++)
	{
		pd[i] = va_arg(ap, double);
	}
	va_end(ap);
	return pd;
}
*/